import request from '@/utils/request'

// 查询教职工管理列表
export function listFaculty(query) {
  return request({
    url: '/campus/faculty/list',
    method: 'get',
    params: query
  })
}

// 查询教职工管理详细
export function getFaculty(id) {
  return request({
    url: '/campus/faculty/' + id,
    method: 'get'
  })
}

// 新增教职工管理
export function addFaculty(data) {
  return request({
    url: '/campus/faculty',
    method: 'post',
    data: data
  })
}

// 修改教职工管理
export function updateFaculty(data) {
  return request({
    url: '/campus/faculty',
    method: 'put',
    data: data
  })
}

// 删除教职工管理
export function delFaculty(id) {
  return request({
    url: '/campus/faculty/' + id,
    method: 'delete'
  })
}
